#include<stdio.h>
class A
{
    public:
        int ShowX()const{return X;}
        int ShowY()const{return Y;}
    protected:
        int X, Y;
};
class B:protected A
{
    public:
        void Set(int x, int y){
            X = x;
            Y = y;
        }
        void Show()const{
            printf("x = %d, y = %d\n", X, Y);
        }
};
int main(int argc, char *argv[])
{
    B a;
    a.Set(1, 2);
    a.Show();
    return 0;
}
